package router

import (
	"food-hub/handler"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.GET("list", handler.List)
	r.GET("detail", handler.Detail)

	r.POST("add", handler.Add)
	return r
}
